package com.tsd.system.service;


import com.tsd.core.vo.PageBean;
import com.tsd.system.entity.SysParameter;

import java.util.List;
import java.util.Map;

/**
 * 描述：SysParameter服务实现层接口
 *
 * @author Hillpool
 * @date 2019/03/18 17:43:03
 */
public interface SysParameterService {

    /**
     * 描述：根据id获取SysParameter
     *
     * @param id
     */
    SysParameter queryByPrimaryKey(Long id) throws Exception;

    SysParameter queryBySid(String sid) throws Exception;

    SysParameter queryByName(String name) throws Exception;

    /**
     * 描述：根据id删除SysParameter
     *
     * @param id
     */
    void deleteByPrimaryKey(Long id) throws Exception;

    /**
     * 描述：保存或更新SysParameter
     *
     * @param record
     * @param opUser
     */
    void saveSysParameter(SysParameter record, String opUserSid) throws Exception;

    /**
     * 描述：根据params分页查询SysParameter
     *
     * @param params
     * @param page
     */
    List<SysParameter> findSysParameters(Map<String, Object> params, PageBean page) throws Exception;

    /**
     * 描述：根据params分页查询SysParameter
     *
     * @param params
     * @param page
     */
    List<SysParameter> findSysParameters(Map<String, Object> params) throws Exception;
}
